﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using MvcWebRole1.Models;
using MvcWebRole1.Repositories;

namespace MvcWebRole1.Controllers
{
    [HandleError]
    public class HomeController : Controller
    {
        public ActionResult Index()
        {
            ViewData["Message"] = "Welcome to ASP.NET MVC!";

            return View();
        }

        public ActionResult About()
        {
            return View();
        }

        public ActionResult Expenses()
        {
            var repository = new WorkflowRepository();
            var expenses = repository.GetExpenses();
            return View(expenses);
        }
    }
}
